import { defineStore } from 'pinia';

type CounterStateType = {
  count:number
}

export const useCounterStore = defineStore('counter', {
	state: ():CounterStateType => ({ 
		count: 0 ,
	}),
	actions: {
		increment() {
			this.count++;
		},
	},
});
